package cn.itcast.nems.journal.service;


import cn.itcast.nems.journal.dto.JournalTransferLineDiscountCalcParams;
import cn.itcast.nems.journal.dto.JournalTransferLineDiscountCalcResult;
import cn.itcast.nems.studentrecord.dao.entity.JournalTransferLine;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 转班凭单-行 服务类
 * </p>
 *
 * @author liyong
 * @since 2023-11-14
 */
public interface JournalTransferLineService extends IService<JournalTransferLine> {

    /**
     * 查询转入班对应的凭单行ID
     *
     * @param studentRecordId 转入班学籍ID
     * @return 凭单行ID
     */
    String findLineIdByJobStudentRecordId(String studentRecordId);

    /**
     * 根据订单ID查询凭单行ID
     *
     * @param orderId 订单ID（就业班订单）
     * @return 凭单行ID
     */
    String findLineIdByOrderId(String orderId);

    JournalTransferLineDiscountCalcResult discountCalc(JournalTransferLineDiscountCalcParams params);

}
